home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9676 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: news.io.com!usenet
  2. From: langj@jcave.com (Jonathan Lang)
  3. Newsgroups: comp.lang.c++
  4. Subject: proposals for new C++ standard: templates
  5. Date: Sun, 03 Mar 1996 20:55:46 GMT
  6. Organization: Illuminati Online
  7. Message-ID: <4hct8s$gmg@anarchy.io.com>
  8. NNTP-Posting-Host: p152.jcave.com
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11. How would one make a proposal for the new C++ standard?
  12.  
  13. For anyone interested, my proposal is as follows:
  14.      1. Allow explicit instantiation of template functions
  15.      2. Add the ability to specify default classes in a template
  16. declaration
  17.      3. a template function that uses template class parameters in the
  18. function parameter list has implicit "default" classes for those
  19. template parameters.
  20.      4. add template typedefs
  21.      5. add template objects (to allow one to initialize a static
  22. member of a template class)
  23.      6. add "template inheritance"; this is *not* the same as normal
  24. inheritance, except for a similarity in syntax and use:  with template
  25. "inheritance", one can define a template "class parameter" as being
  26. "derived" from a given class; specifically, every member function of
  27. the "master" class must be defined for the "class parameter" in order
  28. for the template to compile.  
  29.  
  30. These proposals would allow existing template libraries to behave the
  31. same way they always have, and would further allow more flexibility
  32. and control of templates in newer libraries.  The inspiration for
  33. these proposals was the STL and all of the workarounds that have to be
  34. used in order for it to work.  
  35.  
  36. Comments, anyone?
  37.  
  38. -- Jonathan Lang (langj@jcave.com)
  39.  
  40.